package com.itheima.service.cargo;


import com.github.pagehelper.PageInfo;
import com.itheima.domain.cargo.Factory;
import com.itheima.domain.cargo.FactoryExample;

import java.util.List;

// 厂家
public interface FactoryService {

    PageInfo findByPage(int pageNum, int pageSize,FactoryExample factoryExample);

    List<Factory> findCtype();

    Factory findById(String id);

    void save(Factory factory);

    void update(Factory factory);

    void delete(String id);

    List<Factory> findAll(FactoryExample factoryExample);

}
